<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>最新优惠 - 省钱控 - 慢慢</title>
    <link rel="stylesheet" href="./lib/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/moneyctrl.css">
</head>

<body>
    <div class="view">
        <!-- 头部 -->
        <header>
            <a href="javascript:;">
                <i class="fa fa-angle-left" aria-hidden="true"></i>
            </a>
            <h1>省钱控 - 最新优惠</h1>
            <a href="javascript:;"></a>
        </header>
        <!-- 内容部分 -->
        <section>
            <div class="goods">
                
                <!-- 模板引擎 id=tplmc -->

            </div>
        </section>
        <!-- 分页 -->
        <div class="paging clearfix">
            <a class="p-up" href="javascript:;">上一页</a>
            <select class="selectPage">
                
                <!-- 模板引擎 id=tplpage -->
               

            </select>
            <a class="p-down" href="javascript:;">下一页</a>
        </div>

        <!-- 面包屑导航 -->
        <div class="bread clearfix">
            <a href="./index.html">首页 > </a>
            <span>省钱控</span>
        </div>

        <!-- 底部 -->
        <footer>
            <div class="footer-top">
                <div class="f-t-tool">
                    <a href="javascript:;">登录</a>
                    <a href="javascript:;">注册</a>
                    <a href="#"><i class="fa fa-long-arrow-up"></i> 返回顶部</a>
                </div>
            </div>
            <div class="footer-bottom clearfix">
                <div class="close">
                </div>
                <img src="./images/manimg.jpg" alt="">
                <div>
                    <p>全网折扣实时更新</p>
                    <p>神价第一时间通知</p>
                </div>
                <a class="opp" href="javascript:;">立即打开</a>
            </div>
        </footer>
</body>



<!-- 模板引擎 -->
<script src="./lib/arttemplate/template-web.js"></script>
<!-- zepto -->
<script src="./lib/zepto/zepto.js"></script>
<!-- 公共js -->
<script src="./js/common.js"></script>
<!-- moneyctrl.js -->
<script src="./js/moneyctrl.js"></script>

<!-- 模板 -->
<script type="text/template" id="tplmc">
    {{ each arr value index}}
    <a class="commodity clearfix" href="./moneyctrlproduct.html?productid={{value.productId}}">
        <div class="left">
            {{@ value.productImgSm}}
        </div>
        <div class="right">
            <div class="r-top">{{value.productName}}
                <span>{{value.productPinkage }}
                </span>
            </div>
            <div class="r-bottom">
                <span>{{value.productFrom}} | {{value.productTime}}</span>
                <span>{{value.productComCount}}</span>
            </div>
        </div>
    </a>
    {{ /each }}
</script>

<script type="text/template" id="tplpage">
    {{ each arr value index}}
     <option value="{{value.index}}">{{value.index + 1}} / {{value.total}}</option>
    {{/each}}

</script>
 
</html>